//
//  UIStandardTableViewCell.m
//  vhECGTools
//
//  Created by jia yu on 2021/12/14.
//

#import "UIStandardTableViewCell.h"

@implementation UIStandardTableViewCell
@synthesize font;

-(void)setFont:(UIFont *)_font{
    font = _font;
    self.textLabel.font = font;
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0.f, 0.f, self.frame.size.width, self.frame.size.height)];
        v.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        self.selectedBackgroundView = v;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected){
        self.selectedBackgroundView.backgroundColor = [UIColor colorWithRed:0.95 green:0.98 blue:0.98 alpha:1.f];
    }else{
        self.selectedBackgroundView.backgroundColor = [UIColor whiteColor];
    }
    return;
}

@end
